package cn.enilu.flash.bean.entity.order;

import cn.enilu.flash.bean.entity.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import java.math.BigDecimal;
import java.util.Date;

@Entity(name = "t_pay_order")
@Table(appliesTo = "t_pay_order", comment = "支付订单类")
@Data
@EntityListeners(AuditingEntityListener.class)
public class PayOrder extends BaseEntity {
    @Column(columnDefinition = "int(11) COMMENT '任务编号'")
    private Long taskId;
    @Column(columnDefinition = "decimal(10,2) COMMENT '任务佣金'")
    private BigDecimal brokerage;
    @Column(columnDefinition = "tinyint(4) COMMENT '支付类型：1.余额支付，2.微信支付'")
    private Integer payType;
    @Column(columnDefinition = "varchar(64) COMMENT '微信支付订单编号'")
    private String payOrderNo;
    @Column(columnDefinition = "decimal(10,2) COMMENT '平台服务费'")
    private BigDecimal totalServiceFee;
}
